home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Info-Mac 4
/
Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso
/
Development
/
General
/
MWC & CodeResources
/
DRVR_DA.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-01-13
|
973b
|
25 lines
/************************************************************************/
/* Purpose..: Device Driver / DA Entry point */
/* Input....: see Inside Mac */
/* Return...: Depends on message */
/************************************************************************/
short main(CntrlParam *paramBlock,DCtlPtr devCtlEnt,short dispatch)
{
//
// Here A4 is already setup to point to our data segment. There is no need
// to call long oldA4=SetCurrentA4();/SetA4(oldA4); as in code resources.
//
// However you have to still have to use "#include <SetupA4.h>;RememberA4();..."
// when using callback functions.
//
switch(dispatch)
{
case 0: break; // Open
case 1: break; // Prime return 1 if async request cannot be completed right away
case 2: break; // Control return 1 if async request cannot be completed right away
case 3: break; // Status return 1 if async request cannot be completed right away
case 4: break; // Close
}
return 0;
}